package com.jimmy.medical.config;

public class WeixinConfig {
    /**
     * token标记
     */
    public static final String TOKEN = "weixin";
    /**
     * APPID
     */
    public static final String APPID = "wx9e6a597407afe7ab";
    /**
     * 密匙
     */
    public static final String APPSECRET = "da8acaa767b01bf7305e9198f63c4638";
    /**
     * 商户号ID
     */
    public static String MCH_ID = "1273789301";
    /**
     * 商品API_KEY
     */
    public static String API_KEY = "yangyue3339yangyue12345678909876";
    ///**商品API_KEY-沙箱测试KEY*/
    //public static String API_KEY="ABCDEFGHIJKLMNOPQRSTUVWXYZ123456 ";

    /**
     * 服务器回调域名
     */
    public static final String REDIRECT_URI_HOME = "http://wx.yenkung.com/";

    /**
     * OPEN主页域名
     */
    public static final String OPEN_URL_BASE = "https://open.weixin.qq.com";
    /**
     * API主页域名
     */
    public static final String API_URL_BASE = "https://api.weixin.qq.com";
    /**
     * API主页域名
     */
    public static final String MCH_URL_BASE = "https://api.mch.weixin.qq.com";

    /**
     * 获取access_token的API-URL:获取access_token时grant_type应填写client_credential
     */
    public static final String API_URL_ACCESSTOKEN = API_URL_BASE + "/cgi-bin/token?grant_type=client_credential&appid=" + APPID + "&secret=" + APPSECRET;

    /**
     * 获取JSAPI-TICKET的API-URL:需要加上获取的ACCESS_TOKEN
     */
    public static final String API_URL_JSAPITICKET = API_URL_BASE + "/cgi-bin/ticket/getticket?type=jsapi&access_token=";

    /**
     * 统一下单,订单获取接口
     */
    public static final String API_URL_MCHPAY_UNIFIEDORDER = MCH_URL_BASE + "/pay/unifiedorder";
}
